package top.letscode.adclicker.util;

import java.util.Calendar;

public class Utils {

  public static void sleepQuietly(long seconds) {
    try {
      Thread.sleep(seconds * 1000);
    } catch (InterruptedException e) {// ignore

    }
  }

  public static int getHour() {
    return Calendar.getInstance().get(Calendar.HOUR_OF_DAY);
  }

  public static boolean isInMorning() {
    int hour = getHour();

    return hour > 2 && hour < 6;
  }
}
